package com.mall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.entity.SmsCouponHistory;
import com.mall.entity.SmsSpikeSession;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.sql.Time;
import java.time.LocalTime;
import java.util.List;

@Mapper
public interface SmsSpikeSessionMapper extends BaseMapper<SmsSpikeSession> {
    @Select("select id from sms_flash_promotion_session where status = 1  and start_time < #{time} and end_time > #{time}")
    Integer getSessionId(@Param("time") LocalTime time);
}
